﻿<Window x:Class="SQLToolbox.View.DialogWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Dialog" Height="300" Width="300" SizeToContent="WidthAndHeight" ResizeMode="NoResize" 
        ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow">
    <Window.Resources>
        <SolidColorBrush x:Key="OverBackground" Color="#FFF5F5F5"/>
        <SolidColorBrush x:Key="PressedBackground" Color="#FFD4D0C8"/>
        <SolidColorBrush x:Key="NormalBorder" Color="#FF969696"/>
        <Style TargetType="{x:Type Button}">
            <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
            <Setter Property="Background" Value="Transparent"/>
            <Setter Property="BorderBrush" Value="{StaticResource NormalBorder}"/>
            <Setter Property="BorderThickness" Value="1"/>
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
            <Setter Property="Padding" Value="4"/>
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Grid>
                            <Border SnapsToDevicePixels="true" x:Name="Chrome" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2" Opacity="1" />
                            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsMouseOver" Value="True">
                                <Setter Property="Opacity" TargetName="Chrome" Value="1"/>
                                <Setter Property="Background" TargetName="Chrome" Value="{DynamicResource OverBackground}" />
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True">
                                <Setter Property="Opacity" TargetName="Chrome" Value="1"/>
                                <Setter Property="Background" TargetName="Chrome" Value="{DynamicResource PressedBackground}" />
                            </Trigger>
                            <Trigger Property="IsEnabled" Value="false">
                                <Setter Property="Foreground" Value="#ADADAD"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </Window.Resources>
    <Window.Background>
        <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
            <GradientStop Color="#FFD4D0C8" Offset="0.0" />
            <GradientStop Color="#FFF5F5F5" Offset="1.0" />
        </LinearGradientBrush>
    </Window.Background>
    <Grid Margin="5,0,5,0">
        <Grid.RowDefinitions>
            <RowDefinition Name="fRow" Height="*"></RowDefinition>
            <RowDefinition Name="sRow" Height="30"></RowDefinition>
        </Grid.RowDefinitions>
        <DockPanel Name="host" Grid.Row="0">

        </DockPanel>
        <WrapPanel Name="buttonPanel" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center">
            <WrapPanel.Resources>
                    <!--<Style TargetType="Button">
                    <Setter Property="OverridesDefaultStyle" Value="false" />
                    <Setter Property="SnapsToDevicePixels" Value="true"/>
                    <Setter Property="MinHeight" Value="23"/>
                    <!<Setter Property="MinWidth" Value="75"/>>
                    <Setter Property="Margin" Value="2,2,2,2"/>
                    <Setter Property="Padding" Value="5,2,5,2"/>
                </Style>-->

            </WrapPanel.Resources>
        </WrapPanel>
    </Grid>
</Window>


